/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.*;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.TextFrame2*/
public class TextFrame2 extends JavaScriptObject {

	protected TextFrame2() { }
	public native final Object getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final float getMarginBottom()/*-{
		return this.MarginBottom;
	}-*/;

	public native final void setMarginBottom(float value)/*-{
		this.MarginBottom = value;
	}-*/;

	public native final float getMarginLeft()/*-{
		return this.MarginLeft;
	}-*/;

	public native final void setMarginLeft(float value)/*-{
		this.MarginLeft = value;
	}-*/;

	public native final float getMarginRight()/*-{
		return this.MarginRight;
	}-*/;

	public native final void setMarginRight(float value)/*-{
		this.MarginRight = value;
	}-*/;

	public native final float getMarginTop()/*-{
		return this.MarginTop;
	}-*/;

	public native final void setMarginTop(float value)/*-{
		this.MarginTop = value;
	}-*/;

	protected native final int _getOrientation()/*-{
		return this.Orientation;
	}-*/;

	public final MsoTextOrientation getOrientation(){
		return MsoTextOrientation.valueOf(_getOrientation());
	}
	protected native final void _setOrientation( int value)/*-{
		this.Orientation = value;
	}-*/;

	public final void setOrientation(MsoTextOrientation value){
		_setOrientation(value.getValue());
	}
	protected native final int _getHorizontalAnchor()/*-{
		return this.HorizontalAnchor;
	}-*/;

	public final MsoHorizontalAnchor getHorizontalAnchor(){
		return MsoHorizontalAnchor.valueOf(_getHorizontalAnchor());
	}
	protected native final void _setHorizontalAnchor( int value)/*-{
		this.HorizontalAnchor = value;
	}-*/;

	public final void setHorizontalAnchor(MsoHorizontalAnchor value){
		_setHorizontalAnchor(value.getValue());
	}
	protected native final int _getVerticalAnchor()/*-{
		return this.VerticalAnchor;
	}-*/;

	public final MsoVerticalAnchor getVerticalAnchor(){
		return MsoVerticalAnchor.valueOf(_getVerticalAnchor());
	}
	protected native final void _setVerticalAnchor( int value)/*-{
		this.VerticalAnchor = value;
	}-*/;

	public final void setVerticalAnchor(MsoVerticalAnchor value){
		_setVerticalAnchor(value.getValue());
	}
	protected native final int _getPathFormat()/*-{
		return this.PathFormat;
	}-*/;

	public final MsoPathFormat getPathFormat(){
		return MsoPathFormat.valueOf(_getPathFormat());
	}
	protected native final void _setPathFormat( int value)/*-{
		this.PathFormat = value;
	}-*/;

	public final void setPathFormat(MsoPathFormat value){
		_setPathFormat(value.getValue());
	}
	protected native final int _getWarpFormat()/*-{
		return this.WarpFormat;
	}-*/;

	public final MsoWarpFormat getWarpFormat(){
		return MsoWarpFormat.valueOf(_getWarpFormat());
	}
	protected native final void _setWarpFormat( int value)/*-{
		this.WarpFormat = value;
	}-*/;

	public final void setWarpFormat(MsoWarpFormat value){
		_setWarpFormat(value.getValue());
	}
	protected native final int _getWordArtformat()/*-{
		return this.WordArtformat;
	}-*/;

	public final MsoPresetTextEffect getWordArtformat(){
		return MsoPresetTextEffect.valueOf(_getWordArtformat());
	}
	protected native final void _setWordArtformat( int value)/*-{
		this.WordArtformat = value;
	}-*/;

	public final void setWordArtformat(MsoPresetTextEffect value){
		_setWordArtformat(value.getValue());
	}
	protected native final int _getWordWrap()/*-{
		return this.WordWrap;
	}-*/;

	public final MsoTriState getWordWrap(){
		return MsoTriState.valueOf(_getWordWrap());
	}
	protected native final void _setWordWrap( int value)/*-{
		this.WordWrap = value;
	}-*/;

	public final void setWordWrap(MsoTriState value){
		_setWordWrap(value.getValue());
	}
	protected native final int _getAutoSize()/*-{
		return this.AutoSize;
	}-*/;

	public final MsoAutoSize getAutoSize(){
		return MsoAutoSize.valueOf(_getAutoSize());
	}
	protected native final void _setAutoSize( int value)/*-{
		this.AutoSize = value;
	}-*/;

	public final void setAutoSize(MsoAutoSize value){
		_setAutoSize(value.getValue());
	}
	public native final ThreeDFormat getThreeD()/*-{
		return this.ThreeD;
	}-*/;

	protected native final int _getHasText()/*-{
		return this.HasText;
	}-*/;

	public final MsoTriState getHasText(){
		return MsoTriState.valueOf(_getHasText());
	}
	public native final TextRange2 getTextRange()/*-{
		return this.TextRange;
	}-*/;

	public native final TextColumn2 getColumn()/*-{
		return this.Column;
	}-*/;

	public native final Ruler2 getRuler()/*-{
		return this.Ruler;
	}-*/;

	public native final void deleteText()/*-{
		this.DeleteText( );
	}-*/;

}
